home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / doors_1 / mach10.zip / MACHARC.BAT < prev    next >
DOS Batch File  |  1990-06-19  |  3KB  |  115 lines

  1. rem %1 Command code
  2. rem %2 ARChive file name
  3. rem %3 ARChive member file name
  4. rem %4 ARChive output file name
  5. Del \temp\*.* < Y.dat
  6. if %1==A goto arcfile
  7. if %1==R goto arcread
  8. if %1==TA goto arctest
  9. if %1==TP goto paktest
  10. if %1==TZ goto ziptest
  11. if %1==VA goto arcview
  12. if %1==VP goto pakview
  13. if %1==VZ goto zipview
  14. if %1==VL goto lzhview
  15. if %1==ZA goto ziparc
  16. if %1==ZF goto zipnorm
  17. if %1==ZP goto zippak
  18. if %1==ZZ goto Zipzip
  19. if %1==ZL goto ZipLZH
  20. goto donearc
  21. rem -----------------------------------------
  22. rem ARCFILE - archive %3 into %2 with PKARC
  23. rem -----------------------------------------
  24. :arcfile
  25. pkarc /A %2 %3
  26. goto donearc
  27. rem -----------------------------------------
  28. rem ARCREAD - read %3 in archive %2 and place
  29. rem           output in %4
  30. rem -----------------------------------------
  31. :arcread
  32. pkunzip /C %2 %3 > %4
  33. goto donearc
  34. rem -----------------------------------------
  35. rem ARCTEST - test archive %2 and place
  36. rem           results in %4
  37. rem -----------------------------------------
  38. :arctest
  39. pkxarc /T %2 > %4
  40. goto donearc
  41. rem -----------------------------------------
  42. rem ZIPTEST - test archive %2 and place
  43. rem           results in %4
  44. rem -----------------------------------------
  45. :ziptest
  46. pkunzip /T %2 > %4
  47. goto donearc
  48. rem -----------------------------------------
  49. rem ZIPVIEW - view zip archive %2 and place
  50. rem           results in %4
  51. rem -----------------------------------------
  52. :zipview
  53. pkunzip /V %2 %3 > %4
  54. goto donearc
  55. rem -----------------------------------------
  56. rem ARCVIEW - view arc archive %2 and place
  57. rem           results in %4
  58. rem -----------------------------------------
  59. :arcview
  60. pkxarc /V %2 %3 > %4
  61. goto donearc
  62. rem -----------------------------------------
  63. rem LZHVIEW - view lzh archive %2 and place
  64. rem           results in %4
  65. rem -----------------------------------------
  66. :lzhview
  67. LHARC V %2 %3 > %4
  68. goto donearc
  69. rem -----------------------------------------
  70. rem ZIPARC - un-ARC pkarc file %3, pkzip it
  71. rem          into archive %2.
  72. rem -----------------------------------------
  73. :ziparc
  74. cd \temp
  75. pkxarc %3
  76. pkzip -mex %2
  77. cd \mach10
  78. goto donearc
  79. rem -----------------------------------------
  80. rem ZIPPAK - un-arc pak file %3, pkzip it
  81. rem          into archive %2.
  82. rem -----------------------------------------
  83. :zippak
  84. cd \temp
  85. pak e %3
  86. pkzip -mex %2
  87. cd \mach10
  88. goto donearc
  89. rem -----------------------------------------
  90. rem ZIPNORM - archive %3 into zip file %2
  91. rem -----------------------------------------
  92. :zipnorm
  93. pkzip -mex %2 %3
  94. goto donearc
  95. rem -----------------------------------------
  96. rem ZIPZIP - unzip %3 into zip file %2
  97. rem -----------------------------------------
  98. :zipzip
  99. cd \temp
  100. pkunzip %3
  101. pkzip -mex %2
  102. cd \mach10
  103. goto donearc
  104. rem -----------------------------------------
  105. rem ZIPLZH - un-arc lzh file %3, pkzip it
  106. rem          into archive %2.
  107. rem -----------------------------------------
  108. :ziplzh
  109. cd \temp
  110. lharc e %3
  111. pkzip -mex %2
  112. cd \mach10
  113. goto donearc
  114. :donearc
  115.